import request from '@/utils/request'

// 查询区外考生居住地信息列表
export function listOutsideResidence(query) {
  return request({
    url: '/chengkao/outsideResidence/list',
    method: 'get',
    params: query
  })
}

// 查询区外考生居住地信息详细
export function getOutsideResidence(id) {
  return request({
    url: '/chengkao/outsideResidence/' + id,
    method: 'get'
  })
}

// 新增区外考生居住地信息
export function addOutsideResidence(data) {
  return request({
    url: '/chengkao/outsideResidence',
    method: 'post',
    data: data
  })
}

// 修改区外考生居住地信息
export function updateOutsideResidence(data) {
  return request({
    url: '/chengkao/outsideResidence',
    method: 'put',
    data: data
  })
}

// 删除区外考生居住地信息
export function delOutsideResidence(id) {
  return request({
    url: '/chengkao/outsideResidence/' + id,
    method: 'delete'
  })
}
